//
//  MyTicket.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/21/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIFormDataRequest.h"
#import "MyTicketCell.h"
#import "EventTicket.h"
@protocol myTicKetDelegate;
@interface MyTicket : UIView<UITableViewDelegate, UITableViewDataSource, EGORefreshTableHeaderDelegate>{
    
    IBOutlet UILabel *_lbButton;
    IBOutlet UIButton *_btnButton;
    IBOutlet UIButton *_btnMyticket;
    
    //hud
    MBProgressHUD *mHud;
    BOOL mLoading;
    NSInteger _countTimeout;
    
    //Pull to refesh
    EGORefreshTableHeaderView *refeshHeaderTableView;
    int addingDuration;
    BOOL _reloading;
    
    
    //Request
    ASIFormDataRequest *requestServer;
    
    NSMutableArray *_arrayData;
     UITableView *_tblView;
    
}
@property (nonatomic, assign) id<myTicKetDelegate> myTicKetDelegate;
@property (nonatomic, retain) NSString *fromView;

- (IBAction)btnMyTicketView_ChangeFindEvent_CLicked:(id)sender;
- (void)setupMyticket;
- (void)getMyTicKetFromServer;
@end


////////////////////////////////////////////////////////////
@protocol myTicKetDelegate <NSObject>

@optional
- (void)myTicKetButtonFindEventClick:(MyTicket *)myticket;
- (void)myTicKetButtonCategoryClick:(MyTicket *)myticket;
@end